﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace Animation_Manager
{
    public enum TriggerTypes { None, Particle, Attack, Sound };
    class Frame
    {
        Point frameLocation;
        Point anchorPoint;
        Size frameSize;
        float duration;
        string name;
        bool selected;
        TriggerTypes trigger;
        string triggerName;

        public Point FrameLocation
        {
            get { return frameLocation; }
            set { frameLocation = value; }
        }

        public Point AnchorPoint
        {
            get { return anchorPoint; }
            set { anchorPoint = value; }
        }

        public Size FrameSize
        {
            get { return frameSize; }
            set { frameSize = value; }
        }

        public float Duration
        {
            get { return duration; }
            set { duration = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public bool Selected
        {
            get { return selected; }
            set { selected = value; }
        }

        public TriggerTypes Trigger
        {
            get { return trigger; }
            set { trigger = value; }
        }

        public string TriggerName
        {
            get { return triggerName; }
            set { triggerName = value; }
        }

        public Frame()
        {

        }

        public Frame(Frame f)
        {
            //this = f;
        }

        public Frame(Point loc, Point anchor, Size fSize, float Dur, string name, TriggerTypes trig)
        {

        }

        public override string ToString()
        {
            return name;
        }
    }
}
